<template>
    <button @click="isShow = !isShow">显示隐藏</button>
    <Demo v-if="isShow"> </Demo>
</template>

<script>
import { ref } from "vue";
import Demo from "./components/Demo.vue";
export default {
    name: "App",
    components: { Demo },
    setup() {
        let test1 = function (vlaue) {
            alert(vlaue);
        };
        let isShow = ref(true);
        return { test1, isShow };
    },
};
</script>

<style>
</style>
